.class public final Lcom/ninesky/browser/n;
.super Landroid/widget/FrameLayout;


# instance fields
.field private A:Landroid/webkit/DownloadListener;

.field private B:Landroid/app/AlertDialog;

.field private C:Landroid/app/AlertDialog;

.field private D:Landroid/webkit/WebView;

.field private E:Landroid/webkit/SslErrorHandler;

.field private F:Landroid/net/http/SslError;

.field private G:Landroid/app/AlertDialog;

.field private H:Lcom/ninesky/browser/n;

.field private I:Ljava/lang/Boolean;

.field private J:Landroid/app/AlertDialog;

.field private K:Lcom/ninesky/browser/n;

.field public a:Ljava/lang/String;

.field b:Lcom/ninesky/browser/ck;

.field c:Lcom/ninesky/widget/l;

.field private d:Lcom/ninesky/browser/BrowserActivity;

.field private e:I

.field private f:Z

.field private g:I

.field private h:Landroid/webkit/WebView;

.field private i:Landroid/webkit/WebBackForwardList;

.field private j:Landroid/graphics/Bitmap;

.field private k:Landroid/graphics/Bitmap;

.field private l:Landroid/graphics/Bitmap;

.field private m:Landroid/os/Bundle;

.field private n:Ljava/lang/String;

.field private o:Ljava/lang/String;

.field private p:Ljava/lang/String;

.field private q:Ljava/lang/String;

.field private r:I

.field private s:I

.field private t:Lcom/ninesky/browser/eg;

.field private u:I

.field private v:Landroid/os/Handler;

.field private w:Lcom/ninesky/browser/a/t;

.field private x:Lcom/ninesky/browser/a/c;

.field private final y:Landroid/webkit/WebViewClient;

.field private final z:Landroid/webkit/WebChromeClient;


# direct methods
.method public constructor <init>(Lcom/ninesky/browser/BrowserActivity;)V
    .locals 6

    const/4 v5, 0x0

    const/16 v4, 0x8

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput v2, p0, Lcom/ninesky/browser/n;->e:I

    iput-boolean v2, p0, Lcom/ninesky/browser/n;->f:Z

    iput v2, p0, Lcom/ninesky/browser/n;->g:I

    iput-object v5, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    const-string v0, "unknown"

    iput-object v0, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    iput v2, p0, Lcom/ninesky/browser/n;->r:I

    iput v2, p0, Lcom/ninesky/browser/n;->s:I

    iput-object v5, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    new-instance v0, Lcom/ninesky/browser/eg;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/eg;-><init>(Lcom/ninesky/browser/n;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->t:Lcom/ninesky/browser/eg;

    const/4 v0, -0x1

    iput v0, p0, Lcom/ninesky/browser/n;->u:I

    new-instance v0, Lcom/ninesky/browser/ar;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/ar;-><init>(Lcom/ninesky/browser/n;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->v:Landroid/os/Handler;

    new-instance v0, Lcom/ninesky/browser/ao;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/ao;-><init>(Lcom/ninesky/browser/n;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->y:Landroid/webkit/WebViewClient;

    new-instance v0, Lcom/ninesky/browser/ap;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/ap;-><init>(Lcom/ninesky/browser/n;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->z:Landroid/webkit/WebChromeClient;

    new-instance v0, Lcom/ninesky/browser/ai;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/ai;-><init>(Lcom/ninesky/browser/n;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->A:Landroid/webkit/DownloadListener;

    iput-object p1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    new-instance v0, Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->y:Landroid/webkit/WebViewClient;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->z:Landroid/webkit/WebChromeClient;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->A:Landroid/webkit/DownloadListener;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setDownloadListener(Landroid/webkit/DownloadListener;)V

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x9

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setOverScrollMode(I)V

    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xb

    if-ge v0, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getContainer()Landroid/view/ViewGroup;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getContainer()Landroid/view/ViewGroup;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ZoomButtonsController;->setZoomInEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ZoomButtonsController;->setZoomOutEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getZoomControls()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/ZoomButtonsController;->setOnZoomListener(Landroid/widget/ZoomButtonsController$OnZoomListener;)V

    :cond_1
    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/setting/a;->a(Landroid/webkit/WebSettings;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/n;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, v4}, Landroid/webkit/WebView;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f020001

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->l:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/ninesky/browser/n;->t:Lcom/ninesky/browser/eg;

    invoke-static {}, Lcom/ninesky/browser/view/ToolBar;->b()Lcom/ninesky/browser/view/ToolBar;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/eg;->addObserver(Ljava/util/Observer;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->t:Lcom/ninesky/browser/eg;

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/eg;->addObserver(Ljava/util/Observer;)V

    return-void
.end method

.method private B()V
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/n;->a(ILjava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->f(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->a(I)V

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-nez v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    :cond_0
    return-void
.end method

.method private a(Landroid/net/http/SslCertificate;)Landroid/view/View;
    .locals 4

    const/4 v2, 0x0

    if-nez p1, :cond_0

    move-object v0, v2

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030021

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {p1}, Landroid/net/http/SslCertificate;->getIssuedTo()Landroid/net/http/SslCertificate$DName;

    move-result-object v2

    if-eqz v2, :cond_1

    const v0, 0x7f0c0060

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getCName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0062

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getOName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0064

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getUName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    invoke-virtual {p1}, Landroid/net/http/SslCertificate;->getIssuedBy()Landroid/net/http/SslCertificate$DName;

    move-result-object v2

    if-eqz v2, :cond_2

    const v0, 0x7f0c0066

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getCName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0068

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getOName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c006a

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/net/http/SslCertificate$DName;->getUName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    invoke-virtual {p1}, Landroid/net/http/SslCertificate;->getValidNotBefore()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const v0, 0x7f0c006d

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p1}, Landroid/net/http/SslCertificate;->getValidNotAfter()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const v2, 0x7f0c006f

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    move-object v0, v1

    goto/16 :goto_0
.end method

.method static synthetic a(Lcom/ninesky/browser/n;)Lcom/ninesky/browser/BrowserActivity;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    return-object v0
.end method

.method static synthetic a(Lcom/ninesky/browser/n;I)V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/ninesky/browser/n;->a(ILjava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Landroid/webkit/WebView;Landroid/webkit/SslErrorHandler;Landroid/net/http/SslError;)V
    .locals 7

    const v6, 0x7f0c0071

    const v5, 0x7f030023

    invoke-virtual {p3}, Landroid/net/http/SslError;->getCertificate()Landroid/net/http/SslCertificate;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->a(Landroid/net/http/SslCertificate;)Landroid/view/View;

    move-result-object v2

    if-eqz v2, :cond_4

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v3

    const v0, 0x7f0c005c

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const/4 v1, 0x3

    invoke-virtual {p3, v1}, Landroid/net/http/SslError;->hasError(I)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v3, v5, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v4, 0x7f07008c

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V

    :cond_0
    const/4 v1, 0x2

    invoke-virtual {p3, v1}, Landroid/net/http/SslError;->hasError(I)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v3, v5, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v4, 0x7f07008d

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V

    :cond_1
    const/4 v1, 0x1

    invoke-virtual {p3, v1}, Landroid/net/http/SslError;->hasError(I)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {v3, v5, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v4, 0x7f07008e

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V

    :cond_2
    const/4 v1, 0x0

    invoke-virtual {p3, v1}, Landroid/net/http/SslError;->hasError(I)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {v3, v5, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f07008f

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :cond_3
    iput-object p2, p0, Lcom/ninesky/browser/n;->E:Landroid/webkit/SslErrorHandler;

    iput-object p1, p0, Lcom/ninesky/browser/n;->D:Landroid/webkit/WebView;

    iput-object p3, p0, Lcom/ninesky/browser/n;->F:Landroid/net/http/SslError;

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f070090

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f020021

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070005

    new-instance v2, Lcom/ninesky/browser/dz;

    invoke-direct {v2, p0, p1, p2, p3}, Lcom/ninesky/browser/dz;-><init>(Lcom/ninesky/browser/n;Landroid/webkit/WebView;Landroid/webkit/SslErrorHandler;Landroid/net/http/SslError;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070086

    new-instance v2, Lcom/ninesky/browser/dw;

    invoke-direct {v2, p0}, Lcom/ninesky/browser/dw;-><init>(Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNeutralButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/dv;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/ninesky/browser/dv;-><init>(Lcom/ninesky/browser/n;Landroid/webkit/WebView;Landroid/webkit/SslErrorHandler;Landroid/net/http/SslError;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->C:Landroid/app/AlertDialog;

    :cond_4
    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Lcom/ninesky/browser/n;)V
    .locals 4

    iget-object v0, p1, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getCertificate()Landroid/net/http/SslCertificate;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->a(Landroid/net/http/SslCertificate;)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v0, 0x7f0c005c

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v3, 0x7f030022

    invoke-virtual {v2, v3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v2, 0x7f0c0070

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v2, 0x7f070091

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    iput-object p1, p0, Lcom/ninesky/browser/n;->K:Lcom/ninesky/browser/n;

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f070090

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v2, 0x7f020022

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070005

    new-instance v2, Lcom/ninesky/browser/eb;

    invoke-direct {v2, p0, p1}, Lcom/ninesky/browser/eb;-><init>(Lcom/ninesky/browser/n;Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/ee;

    invoke-direct {v1, p0, p1}, Lcom/ninesky/browser/ee;-><init>(Lcom/ninesky/browser/n;Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->J:Landroid/app/AlertDialog;

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Lcom/ninesky/browser/n;Z)V
    .locals 5

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030015

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iget-object v2, p1, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    if-nez v0, :cond_2

    const-string v0, ""

    move-object v3, v0

    :goto_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->p:Ljava/lang/String;

    if-nez v0, :cond_3

    const-string v0, ""

    move-object v4, v0

    :goto_1
    const v0, 0x7f0c0003

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0001

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iput-object p1, p0, Lcom/ninesky/browser/n;->H:Lcom/ninesky/browser/n;

    new-instance v0, Ljava/lang/Boolean;

    invoke-direct {v0, p2}, Ljava/lang/Boolean;-><init>(Z)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->I:Ljava/lang/Boolean;

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v3, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f070085

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v3, 0x108009b

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f070005

    new-instance v3, Lcom/ninesky/browser/dy;

    invoke-direct {v3, p0, p2}, Lcom/ninesky/browser/dy;-><init>(Lcom/ninesky/browser/n;Z)V

    invoke-virtual {v0, v1, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    new-instance v1, Lcom/ninesky/browser/dx;

    invoke-direct {v1, p0, p2}, Lcom/ninesky/browser/dx;-><init>(Lcom/ninesky/browser/n;Z)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    if-nez p2, :cond_0

    if-eqz v2, :cond_1

    invoke-virtual {v2}, Landroid/webkit/WebView;->getCertificate()Landroid/net/http/SslCertificate;

    move-result-object v1

    if-eqz v1, :cond_1

    :cond_0
    const v1, 0x7f07008b

    new-instance v3, Lcom/ninesky/browser/ec;

    invoke-direct {v3, p0, p2, v2, p1}, Lcom/ninesky/browser/ec;-><init>(Lcom/ninesky/browser/n;ZLandroid/webkit/WebView;Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1, v3}, Landroid/app/AlertDialog$Builder;->setNeutralButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    :cond_1
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->G:Landroid/app/AlertDialog;

    return-void

    :cond_2
    iget-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    move-object v3, v0

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/ninesky/browser/n;->p:Ljava/lang/String;

    move-object v4, v0

    goto :goto_1
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/ninesky/browser/n;->e(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 7

    invoke-static {p1}, Lcom/ninesky/browser/n;->i(Ljava/lang/String;)Z

    move-result v0

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    if-eqz v0, :cond_1

    const v2, 0x7f07006f

    :goto_0
    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    if-eqz v0, :cond_2

    const v3, 0x7f020019

    :goto_1
    if-eqz v0, :cond_4

    if-nez p2, :cond_3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const v5, 0x7f070072

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    :goto_2
    iget-object v4, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    if-nez v4, :cond_0

    new-instance v4, Landroid/app/AlertDialog$Builder;

    iget-object v5, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v4, v5}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v5, 0x7f070089

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v4

    const v5, 0x7f070006

    new-instance v6, Lcom/ninesky/browser/ea;

    invoke-direct {v6, p0, v0, p1}, Lcom/ninesky/browser/ea;-><init>(Lcom/ninesky/browser/n;ZLjava/lang/String;)V

    invoke-virtual {v4, v5, v6}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog;->setIcon(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->B:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    return-void

    :cond_1
    const v2, 0x7f070070

    goto :goto_0

    :cond_2
    const v3, 0x7f020018

    goto :goto_1

    :cond_3
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const v5, 0x7f070073

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const v5, 0x7f070074

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const v5, 0x7f070075

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, "\n"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto/16 :goto_2

    :cond_4
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const v5, 0x7f070071

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto/16 :goto_2
.end method

.method static synthetic a(Lcom/ninesky/browser/n;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/ninesky/browser/n;->f:Z

    return-void
.end method

.method static synthetic a(Ljava/lang/CharSequence;)V
    .locals 3

    :try_start_0
    const-string v0, "clipboard"

    invoke-static {v0}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;

    move-result-object v0

    invoke-static {v0}, Landroid/text/IClipboard$Stub;->asInterface(Landroid/os/IBinder;)Landroid/text/IClipboard;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0, p0}, Landroid/text/IClipboard;->setClipboardText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    const-string v1, "NSBrowser.Tab"

    const-string v2, "Copy failed"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method static synthetic b(Lcom/ninesky/browser/n;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic b(Lcom/ninesky/browser/n;I)V
    .locals 0

    iput p1, p0, Lcom/ninesky/browser/n;->g:I

    return-void
.end method

.method static synthetic b(Lcom/ninesky/browser/n;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    return-void
.end method

.method static synthetic c(Lcom/ninesky/browser/n;)Landroid/webkit/WebView;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic c(Lcom/ninesky/browser/n;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/ninesky/browser/n;->h(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic d(Lcom/ninesky/browser/n;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->v:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic d(Lcom/ninesky/browser/n;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    return-void
.end method

.method static synthetic e(Lcom/ninesky/browser/n;)I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->g:I

    return v0
.end method

.method static synthetic e(Lcom/ninesky/browser/n;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/n;->p:Ljava/lang/String;

    return-void
.end method

.method private e(Ljava/lang/String;)V
    .locals 3

    const-string v0, "unknown"

    iput-object v0, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    invoke-static {p1}, Landroid/webkit/URLUtil;->isHttpsUrl(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "https_secure"

    iput-object v0, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v1

    iget-object v2, p0, Lcom/ninesky/browser/n;->q:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/ninesky/browser/view/br;->b(ILjava/lang/String;)V

    return-void
.end method

.method static synthetic f(Lcom/ninesky/browser/n;)Lcom/ninesky/browser/a/c;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    return-object v0
.end method

.method private f(Ljava/lang/String;)Z
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f090006

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v1

    array-length v2, v1

    move v3, v5

    :goto_0
    if-lt v3, v2, :cond_1

    :cond_0
    :goto_1
    if-eqz v0, :cond_4

    const-string v0, "dns"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "error"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    move v0, v6

    :goto_2
    if-nez v0, :cond_4

    move v0, v6

    :goto_3
    return v0

    :cond_1
    aget-object v4, v1, v3

    invoke-virtual {p1, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_2

    move v0, v5

    goto :goto_1

    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Url="

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_5

    move v0, v6

    goto :goto_2

    :cond_4
    move v0, v5

    goto :goto_3

    :cond_5
    move v0, v5

    goto :goto_2
.end method

.method static synthetic g(Lcom/ninesky/browser/n;)Lcom/ninesky/browser/a/t;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    return-object v0
.end method

.method private g(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    invoke-static {p1}, Lcom/ninesky/a/a;->b(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-direct {p0, p1}, Lcom/ninesky/browser/n;->f(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "CN"

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://gate.baidu.com/tc?src="

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://www.google.com/gwt/x?u="

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_1
    move-object v0, p1

    goto :goto_0
.end method

.method static synthetic h(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->C:Landroid/app/AlertDialog;

    return-void
.end method

.method private h(Ljava/lang/String;)V
    .locals 3

    invoke-direct {p0, p1}, Lcom/ninesky/browser/n;->e(Ljava/lang/String;)V

    invoke-static {}, Lcom/ninesky/browser/user/g;->c()Lcom/ninesky/browser/user/g;

    move-result-object v0

    invoke-static {p1}, Lcom/ninesky/browser/n;->i(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-static {}, Lcom/ninesky/a/a/d;->f()Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    invoke-virtual {v1}, Lcom/ninesky/browser/a/c;->i()V

    :cond_2
    new-instance v1, Lcom/ninesky/browser/a/c;

    iget-object v2, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v1, v2}, Lcom/ninesky/browser/a/c;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    iget-object v1, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/a/c;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/a/c;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    new-instance v1, Lcom/ninesky/browser/db;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/db;-><init>(Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/a/c;->a(Lcom/ninesky/a/a/a;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->x:Lcom/ninesky/browser/a/c;

    invoke-virtual {v0}, Lcom/ninesky/browser/a/c;->h()V

    goto :goto_0

    :cond_3
    invoke-static {}, Lcom/ninesky/browser/a/t;->f()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    invoke-virtual {v1}, Lcom/ninesky/browser/a/t;->i()V

    :cond_4
    new-instance v1, Lcom/ninesky/browser/a/t;

    iget-object v2, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v1, v2}, Lcom/ninesky/browser/a/t;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    iget-object v1, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    invoke-virtual {v0}, Lcom/ninesky/browser/user/g;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/a/t;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/a/t;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    new-instance v1, Lcom/ninesky/browser/cz;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/cz;-><init>(Lcom/ninesky/browser/n;)V

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/a/t;->a(Lcom/ninesky/a/a/a;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->w:Lcom/ninesky/browser/a/t;

    invoke-virtual {v0}, Lcom/ninesky/browser/a/t;->h()V

    goto :goto_0
.end method

.method static synthetic i(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->D:Landroid/webkit/WebView;

    return-void
.end method

.method private static i(Ljava/lang/String;)Z
    .locals 3

    invoke-virtual {p0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x5

    if-le v1, v2, :cond_0

    const/4 v2, 0x4

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, ".apk"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private j(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    const/4 v1, 0x0

    if-eqz p1, :cond_2

    :try_start_0
    invoke-static {}, Ljava/text/DateFormat;->getInstance()Ljava/text/DateFormat;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/text/DateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    if-eqz v0, :cond_2

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v1}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    :goto_1
    if-eqz v0, :cond_0

    :goto_2
    return-object v0

    :catch_0
    move-exception v0

    move-object v0, v1

    goto :goto_0

    :cond_0
    if-eqz p1, :cond_1

    move-object v0, p1

    goto :goto_2

    :cond_1
    const-string v0, ""

    goto :goto_2

    :cond_2
    move-object v0, v1

    goto :goto_1
.end method

.method static synthetic j(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->E:Landroid/webkit/SslErrorHandler;

    return-void
.end method

.method static synthetic k(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->F:Landroid/net/http/SslError;

    return-void
.end method

.method static synthetic l(Lcom/ninesky/browser/n;)Landroid/webkit/WebViewClient;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->y:Landroid/webkit/WebViewClient;

    return-object v0
.end method

.method static synthetic m(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->G:Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic n(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->H:Lcom/ninesky/browser/n;

    return-void
.end method

.method static synthetic o(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->I:Ljava/lang/Boolean;

    return-void
.end method

.method static synthetic p(Lcom/ninesky/browser/n;)Landroid/webkit/WebView;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->D:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic q(Lcom/ninesky/browser/n;)Landroid/webkit/SslErrorHandler;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->E:Landroid/webkit/SslErrorHandler;

    return-object v0
.end method

.method static synthetic r(Lcom/ninesky/browser/n;)Landroid/net/http/SslError;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->F:Landroid/net/http/SslError;

    return-object v0
.end method

.method static synthetic s(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->J:Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic t(Lcom/ninesky/browser/n;)V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->K:Lcom/ninesky/browser/n;

    return-void
.end method


# virtual methods
.method public final A()Landroid/os/Bundle;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    return-object v0
.end method

.method public final a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->n:Ljava/lang/String;

    return-object v0
.end method

.method public final a(I)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->setInitialScale(I)V

    :cond_0
    return-void
.end method

.method protected final a(ILjava/lang/String;)V
    .locals 8

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v3

    iget v4, p0, Lcom/ninesky/browser/n;->e:I

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->c()I

    if-eqz p2, :cond_1

    move-object v5, p2

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v6

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getFavicon()Landroid/graphics/Bitmap;

    move-result-object v0

    :cond_0
    if-eqz v0, :cond_2

    move-object v7, v0

    :goto_1
    new-instance v0, Lcom/ninesky/browser/br;

    move-object v1, p0

    move v2, p1

    invoke-direct/range {v0 .. v7}, Lcom/ninesky/browser/br;-><init>(Lcom/ninesky/browser/n;IIILjava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->t:Lcom/ninesky/browser/eg;

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/eg;->a(Lcom/ninesky/browser/br;)V

    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/ninesky/browser/n;->i()Ljava/lang/String;

    move-result-object v0

    move-object v5, v0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/ninesky/browser/n;->l:Landroid/graphics/Bitmap;

    move-object v7, v0

    goto :goto_1
.end method

.method public final a(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/n;->n:Ljava/lang/String;

    return-void
.end method

.method public final a(Z)V
    .locals 2

    if-eqz p1, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/n;->addView(Landroid/view/View;I)V

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/n;->u()V

    :goto_1
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->onResume()V

    goto :goto_0

    :pswitch_1
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    goto :goto_0

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/n;->removeView(Landroid/view/View;)V

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_1

    goto :goto_1

    :pswitch_2
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->onPause()V

    goto :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x1
        :pswitch_2
    .end packed-switch
.end method

.method public final a(Landroid/os/Bundle;)Z
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    if-nez p1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    const-string v0, "webview"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/ninesky/browser/n;->e:I

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-ne v0, v2, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->restoreState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;

    move-result-object v0

    if-nez v0, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    :cond_2
    move v0, v2

    goto :goto_0
.end method

.method public final b()I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->s:I

    return v0
.end method

.method public final b(Ljava/lang/String;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    const-string v0, "about:blank"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iput-object p1, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    iput-object p1, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    iput v5, p0, Lcom/ninesky/browser/n;->e:I

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, v4}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-nez p1, :cond_3

    const-string v0, "about:dashboard"

    :goto_1
    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->f(Ljava/lang/String;)Z

    move-result v1

    const-string v2, "about:dashboard"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-eqz v0, :cond_2

    iput v4, p0, Lcom/ninesky/browser/n;->e:I

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    :cond_2
    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    const-string v0, "about:dashboard"

    iput-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    goto :goto_0

    :cond_3
    move-object v0, p1

    goto :goto_1

    :cond_4
    invoke-static {v0}, Lcom/ninesky/a/a;->b(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_0

    iget v2, p0, Lcom/ninesky/browser/n;->e:I

    if-eq v2, v5, :cond_6

    iget v2, p0, Lcom/ninesky/browser/n;->e:I

    if-nez v2, :cond_5

    iget-object v2, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_5

    iget-object v2, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v2

    const-string v3, "about:dashboard"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->p()V

    :cond_5
    iput v5, p0, Lcom/ninesky/browser/n;->e:I

    iget-object v2, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v2, v4}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    :cond_6
    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->h(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->onResume()V

    iput-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    if-eqz v1, :cond_7

    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_7
    iput-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method public final c()I
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getProgress()I

    move-result v0

    iput v0, p0, Lcom/ninesky/browser/n;->g:I

    iget v0, p0, Lcom/ninesky/browser/n;->g:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, -0x1

    goto :goto_0
.end method

.method public final c(Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    if-nez p1, :cond_2

    const-string v0, "about:dashboard"

    :goto_0
    const-string v1, "about:dashboard"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-eqz v0, :cond_0

    iput v3, p0, Lcom/ninesky/browser/n;->e:I

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    :cond_0
    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    const-string v0, "about:dashboard"

    iput-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    :cond_1
    :goto_1
    return-void

    :cond_2
    move-object v0, p1

    goto :goto_0

    :cond_3
    invoke-static {v0}, Lcom/ninesky/a/a;->b(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_1

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    if-eq v1, v4, :cond_5

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v1

    const-string v2, "about:dashboard"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_4

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->p()V

    :cond_4
    iput v4, p0, Lcom/ninesky/browser/n;->e:I

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1, v3}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    :cond_5
    invoke-direct {p0, v0}, Lcom/ninesky/browser/n;->h(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->onResume()V

    iput-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->o:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_1
.end method

.method public final createContextMenu(Landroid/view/ContextMenu;)V
    .locals 8

    const v7, 0x7f0700d2

    const v6, 0x7f020045

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string v2, "webview"

    invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v2, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getHitTestResult()Landroid/webkit/WebView$HitTestResult;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Landroid/webkit/WebView$HitTestResult;->getType()I

    move-result v3

    if-eqz v3, :cond_0

    const/16 v4, 0x9

    if-eq v3, v4, :cond_0

    invoke-virtual {v2}, Landroid/webkit/WebView$HitTestResult;->getExtra()Ljava/lang/String;

    move-result-object v2

    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    invoke-virtual {v4}, Lcom/ninesky/widget/l;->b()Z

    move-result v4

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    invoke-virtual {v4}, Lcom/ninesky/widget/l;->c()V

    :cond_2
    new-instance v4, Lcom/ninesky/widget/l;

    iget-object v5, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v4, v5}, Lcom/ninesky/widget/l;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    packed-switch v3, :pswitch_data_0

    :pswitch_0
    const-string v0, "NSBrowser.Tab"

    const-string v1, "We should not get here."

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_3
    :goto_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget v2, p0, Lcom/ninesky/browser/n;->r:I

    iget v3, p0, Lcom/ninesky/browser/n;->s:I

    invoke-virtual {v0, v1, v2, v3}, Lcom/ninesky/widget/l;->a(Landroid/view/View;II)V

    goto :goto_0

    :pswitch_1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "tel:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v3, 0x7f020047

    const v4, 0x7f0700d6

    new-instance v5, Lcom/ninesky/browser/ah;

    invoke-direct {v5, p0, v0}, Lcom/ninesky/browser/ah;-><init>(Lcom/ninesky/browser/n;Landroid/content/Intent;)V

    invoke-virtual {v1, v3, v4, v5}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.INSERT_OR_EDIT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "phone"

    invoke-static {v2}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "vnd.android.cursor.item/contact"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v3, 0x7f020042

    const v4, 0x7f0700d7

    new-instance v5, Lcom/ninesky/browser/ag;

    invoke-direct {v5, p0, v0}, Lcom/ninesky/browser/ag;-><init>(Lcom/ninesky/browser/n;Landroid/content/Intent;)V

    invoke-virtual {v1, v3, v4, v5}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    new-instance v1, Lcom/ninesky/browser/af;

    invoke-direct {v1, p0, v2}, Lcom/ninesky/browser/af;-><init>(Lcom/ninesky/browser/n;Ljava/lang/String;)V

    invoke-virtual {v0, v6, v7, v1}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    goto :goto_1

    :pswitch_2
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "mailto:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v3, 0x7f02004e

    const v4, 0x7f0700d8

    new-instance v5, Lcom/ninesky/browser/ak;

    invoke-direct {v5, p0, v0}, Lcom/ninesky/browser/ak;-><init>(Lcom/ninesky/browser/n;Landroid/content/Intent;)V

    invoke-virtual {v1, v3, v4, v5}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    new-instance v1, Lcom/ninesky/browser/aj;

    invoke-direct {v1, p0, v2}, Lcom/ninesky/browser/aj;-><init>(Lcom/ninesky/browser/n;Ljava/lang/String;)V

    invoke-virtual {v0, v6, v7, v1}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    goto/16 :goto_1

    :pswitch_3
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "geo:0,0?q="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v2}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v3, 0x7f020056

    const v4, 0x7f0700d9

    new-instance v5, Lcom/ninesky/browser/ct;

    invoke-direct {v5, p0, v0}, Lcom/ninesky/browser/ct;-><init>(Lcom/ninesky/browser/n;Landroid/content/Intent;)V

    invoke-virtual {v1, v3, v4, v5}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    new-instance v1, Lcom/ninesky/browser/cy;

    invoke-direct {v1, p0, v2}, Lcom/ninesky/browser/cy;-><init>(Lcom/ninesky/browser/n;Ljava/lang/String;)V

    invoke-virtual {v0, v6, v7, v1}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    goto/16 :goto_1

    :pswitch_4
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v4

    invoke-virtual {v4}, Lcom/ninesky/browser/TabControl;->d()Z

    move-result v4

    if-eqz v4, :cond_4

    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v5, 0x7f020059

    const v6, 0x7f0700ce

    new-instance v7, Lcom/ninesky/browser/cw;

    invoke-direct {v7, p0, v1, v0}, Lcom/ninesky/browser/cw;-><init>(Lcom/ninesky/browser/n;Ljava/util/HashMap;Landroid/webkit/WebView;)V

    invoke-virtual {v4, v5, v6, v7}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    :cond_4
    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v5, 0x7f020044

    const v6, 0x7f0700cf

    new-instance v7, Lcom/ninesky/browser/cv;

    invoke-direct {v7, p0, v1, v0}, Lcom/ninesky/browser/cv;-><init>(Lcom/ninesky/browser/n;Ljava/util/HashMap;Landroid/webkit/WebView;)V

    invoke-virtual {v4, v5, v6, v7}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v4, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v4}, Lcom/ninesky/browser/BrowserActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v4

    new-instance v5, Landroid/content/Intent;

    const-string v6, "android.intent.action.SEND"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v6, "text/plain"

    invoke-virtual {v5, v6}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v6, 0x1

    invoke-virtual {v4, v5, v6}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v4

    if-eqz v4, :cond_5

    iget-object v4, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v5, 0x7f020067

    const v6, 0x7f0700d1

    new-instance v7, Lcom/ninesky/browser/cu;

    invoke-direct {v7, p0, v1, v0}, Lcom/ninesky/browser/cu;-><init>(Lcom/ninesky/browser/n;Ljava/util/HashMap;Landroid/webkit/WebView;)V

    invoke-virtual {v4, v5, v6, v7}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    :cond_5
    const/4 v0, 0x7

    if-eq v3, v0, :cond_3

    :pswitch_5
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getComponentName()Landroid/content/ComponentName;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v3, 0x7f02004f

    const v4, 0x7f0700d5

    new-instance v5, Lcom/ninesky/browser/de;

    invoke-direct {v5, p0, v0}, Lcom/ninesky/browser/de;-><init>(Lcom/ninesky/browser/n;Landroid/content/Intent;)V

    invoke-virtual {v1, v3, v4, v5}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v1, 0x7f020048

    const v3, 0x7f0700d4

    new-instance v4, Lcom/ninesky/browser/dd;

    invoke-direct {v4, p0, v2}, Lcom/ninesky/browser/dd;-><init>(Lcom/ninesky/browser/n;Ljava/lang/String;)V

    invoke-virtual {v0, v1, v3, v4}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    iget-object v0, p0, Lcom/ninesky/browser/n;->c:Lcom/ninesky/widget/l;

    const v1, 0x7f020066

    const v3, 0x7f070058

    new-instance v4, Lcom/ninesky/browser/ab;

    invoke-direct {v4, p0, v2}, Lcom/ninesky/browser/ab;-><init>(Lcom/ninesky/browser/n;Ljava/lang/String;)V

    invoke-virtual {v0, v1, v3, v4}, Lcom/ninesky/widget/l;->a(IILandroid/view/View$OnClickListener;)Landroid/view/View;

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_1
        :pswitch_3
        :pswitch_2
        :pswitch_5
        :pswitch_0
        :pswitch_4
        :pswitch_4
    .end packed-switch
.end method

.method public final d()I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    return v0
.end method

.method public final d(Ljava/lang/String;)V
    .locals 12

    const/4 v11, 0x1

    const/4 v5, -0x1

    const/4 v10, 0x0

    const/4 v9, 0x0

    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v8

    :try_start_0
    new-instance v0, Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    invoke-static {v1}, Landroid/webkit/URLUtil;->decode([B)[B

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>([B)V

    new-instance v4, Landroid/net/WebAddress;

    invoke-direct {v4, v0}, Landroid/net/WebAddress;-><init>(Ljava/lang/String;)V

    iget-object v0, v4, Landroid/net/WebAddress;->mPath:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_6

    const/16 v1, 0x23

    invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v1

    if-eq v1, v5, :cond_5

    add-int/lit8 v2, v1, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v0, v3, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    move-object v1, v2

    :goto_0
    const/16 v2, 0x3f

    invoke-virtual {v0, v2}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v2

    if-eq v2, v5, :cond_4

    add-int/lit8 v3, v2, 0x1

    invoke-virtual {v0, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, 0x0

    invoke-virtual {v0, v5, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    move-object v5, v0

    move-object v6, v3

    move-object v7, v1

    :goto_1
    new-instance v0, Ljava/net/URI;

    iget-object v1, v4, Landroid/net/WebAddress;->mScheme:Ljava/lang/String;

    iget-object v2, v4, Landroid/net/WebAddress;->mAuthInfo:Ljava/lang/String;

    iget-object v3, v4, Landroid/net/WebAddress;->mHost:Ljava/lang/String;

    iget v4, v4, Landroid/net/WebAddress;->mPort:I

    invoke-direct/range {v0 .. v7}, Ljava/net/URI;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    sget-object v2, Lcom/ninesky/browser/provider/downloads/e;->a:Landroid/net/Uri;

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/String;

    const-string v1, "_id"

    aput-object v1, v3, v10

    const-string v1, "uri"

    aput-object v1, v3, v11

    move-object v1, v8

    move-object v4, v9

    move-object v5, v9

    move-object v6, v9

    invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    const-string v2, "_id"

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v2

    const-string v3, "uri"

    invoke-interface {v1, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v3

    if-eqz v1, :cond_0

    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v4

    if-eqz v4, :cond_0

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    move v5, v11

    :goto_2
    invoke-interface {v1}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v6

    if-eqz v6, :cond_1

    if-nez v5, :cond_0

    sget-object v0, Lcom/ninesky/browser/provider/downloads/e;->a:Landroid/net/Uri;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v8, v0, v1, v9}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    :cond_0
    :goto_3
    return-void

    :cond_1
    invoke-interface {v1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0}, Ljava/net/URI;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    if-eqz v5, :cond_3

    move v5, v10

    :goto_4
    const-string v6, "( "

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, "_id"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, " = \'"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    invoke-virtual {v4, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v6, "\' )"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    goto :goto_2

    :cond_3
    const-string v6, " OR "

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_4

    :catch_0
    move-exception v0

    goto :goto_3

    :cond_4
    move-object v5, v0

    move-object v6, v9

    move-object v7, v1

    goto/16 :goto_1

    :cond_5
    move-object v1, v9

    goto/16 :goto_0

    :cond_6
    move-object v5, v0

    move-object v6, v9

    move-object v7, v9

    goto/16 :goto_1
.end method

.method public final dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/ninesky/browser/n;->r:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/ninesky/browser/n;->s:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getScrollY()I

    move-result v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    invoke-virtual {v1}, Lcom/ninesky/browser/view/br;->getHeight()I

    move-result v1

    iget v2, p0, Lcom/ninesky/browser/n;->u:I

    const/4 v3, -0x1

    if-ne v2, v3, :cond_0

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V

    iget-object v3, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v3}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    iget-object v3, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v3}, Lcom/ninesky/browser/BrowserActivity;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    invoke-virtual {v2}, Landroid/graphics/Rect;->height()I

    move-result v2

    sub-int v2, v3, v2

    iput v2, p0, Lcom/ninesky/browser/n;->u:I

    :cond_0
    iget v2, p0, Lcom/ninesky/browser/n;->s:I

    iget v3, p0, Lcom/ninesky/browser/n;->u:I

    sub-int/2addr v2, v3

    sub-int v0, v1, v0

    if-le v2, v0, :cond_1

    const/16 v0, 0x10

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/ninesky/browser/n;->a(ILjava/lang/String;)V

    :cond_1
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public final e()Z
    .locals 2

    const/4 v1, 0x1

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-ne v0, v1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final f()Z
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final g()Landroid/graphics/Bitmap;
    .locals 5

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->k:Landroid/graphics/Bitmap;

    invoke-static {}, Ljava/lang/System;->gc()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->capturePicture()Landroid/graphics/Picture;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    iget-object v2, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    const/high16 v3, 0x42fe

    invoke-static {v2, v3}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    const/high16 v4, 0x42e6

    invoke-static {v3, v4}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {v0, v1, v2, v3}, Lcom/ninesky/a/d;->a(Landroid/graphics/Picture;Landroid/content/Context;II)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->k:Landroid/graphics/Bitmap;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->k:Landroid/graphics/Bitmap;

    :goto_0
    return-object v0

    :cond_1
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->f()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0
.end method

.method public final h()Landroid/graphics/Bitmap;
    .locals 3

    const/4 v2, 0x0

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iput-object v2, p0, Lcom/ninesky/browser/n;->j:Landroid/graphics/Bitmap;

    invoke-static {}, Ljava/lang/System;->gc()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->capturePicture()Landroid/graphics/Picture;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v0, v1}, Lcom/ninesky/a/d;->a(Landroid/graphics/Picture;Landroid/content/Context;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/n;->j:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/ninesky/browser/n;->j:Landroid/graphics/Bitmap;

    :goto_0
    return-object v0

    :cond_0
    move-object v0, v2

    goto :goto_0
.end method

.method public final i()Ljava/lang/String;
    .locals 2

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return-object v0

    :pswitch_0
    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    const-string v1, ""

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :pswitch_1
    const-string v0, "about:dashboard"

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final j()Z
    .locals 2

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return v0

    :pswitch_0
    const/4 v0, 0x1

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public final k()Z
    .locals 3

    const/4 v2, 0x0

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    move v0, v2

    :goto_0
    return v0

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoForward()Z

    move-result v0

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    const-string v1, "about:dashboard"

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    move v0, v2

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final l()V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/n;->i:Landroid/webkit/WebBackForwardList;

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->clearHistory()V

    return-void
.end method

.method public final m()V
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/setting/a;->b(Landroid/webkit/WebSettings;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->l()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->destroy()V

    return-void
.end method

.method public final n()V
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->goBack()V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    iput v0, p0, Lcom/ninesky/browser/n;->e:I

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->onPause()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public final o()V
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoForward()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->goForward()V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v0

    const-string v1, "about:dashboard"

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    iput v0, p0, Lcom/ninesky/browser/n;->e:I

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->onResume()V

    invoke-direct {p0}, Lcom/ninesky/browser/n;->B()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 3

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/ninesky/browser/TabControl;->b(Lcom/ninesky/browser/n;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->a()I

    move-result v0

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/n;->removeView(Landroid/view/View;)V

    invoke-static {}, Lcom/ninesky/browser/view/c;->d()V

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-static {v1}, Lcom/ninesky/browser/view/c;->a(Lcom/ninesky/browser/BrowserActivity;)V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/view/c;->a(I)V

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lcom/ninesky/browser/n;->addView(Landroid/view/View;I)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->v:Landroid/os/Handler;

    new-instance v2, Lcom/ninesky/browser/df;

    invoke-direct {v2, p0, v0}, Lcom/ninesky/browser/df;-><init>(Lcom/ninesky/browser/n;I)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method public final p()V
    .locals 5

    const/4 v4, 0x0

    const/16 v3, 0x8

    const/4 v2, 0x1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-ne v0, v2, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->onPause()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, v3}, Landroid/webkit/WebView;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->m()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/n;->removeView(Landroid/view/View;)V

    new-instance v0, Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v0, v1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->y:Landroid/webkit/WebViewClient;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->z:Landroid/webkit/WebChromeClient;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->A:Landroid/webkit/DownloadListener;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setDownloadListener(Landroid/webkit/DownloadListener;)V

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x9

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setOverScrollMode(I)V

    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xb

    if-ge v0, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getContainer()Landroid/view/ViewGroup;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getContainer()Landroid/view/ViewGroup;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/ZoomButtonsController;->setZoomInEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/ZoomButtonsController;->setZoomOutEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ZoomButtonsController;->getZoomControls()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getZoomButtonsController()Landroid/widget/ZoomButtonsController;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ZoomButtonsController;->setOnZoomListener(Landroid/widget/ZoomButtonsController$OnZoomListener;)V

    :cond_1
    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/setting/a;->a(Landroid/webkit/WebSettings;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/n;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0, v3}, Landroid/webkit/WebView;->setVisibility(I)V

    :cond_2
    return-void
.end method

.method public final q()Ljava/lang/String;
    .locals 2

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return-object v0

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getTitle()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/ninesky/browser/n;->d:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f07005f

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final r()Ljava/lang/String;
    .locals 3

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getTouchIconUrl()Ljava/lang/String;

    move-result-object v0

    :cond_0
    return-object v0
.end method

.method public final s()Z
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-boolean v0, p0, Lcom/ninesky/browser/n;->f:Z

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final t()V
    .locals 2

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->l()V

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->clearCache(Z)V

    return-void
.end method

.method public final u()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/ninesky/browser/TabControl;->b(Lcom/ninesky/browser/n;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/n;->requestFocus()Z

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->requestFocus()Z

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->requestFocusFromTouch()Z

    goto :goto_0

    :pswitch_1
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->requestFocus()Z

    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->requestFocusFromTouch()Z

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final v()Landroid/view/View;
    .locals 2

    const/4 v0, 0x0

    iget v1, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return-object v0

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    goto :goto_0

    :pswitch_1
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final w()V
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    invoke-static {}, Lcom/ninesky/browser/setting/a;->q()Lcom/ninesky/browser/setting/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->a:Ljava/lang/String;

    invoke-direct {p0, v1}, Lcom/ninesky/browser/n;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public final x()V
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    goto :goto_0

    :pswitch_1
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public final y()V
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public final z()Z
    .locals 5

    const/4 v4, 0x1

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    iget-object v0, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    const-string v1, "webview"

    iget v2, p0, Lcom/ninesky/browser/n;->e:I

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    iget v0, p0, Lcom/ninesky/browser/n;->e:I

    if-ne v0, v4, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/n;->h:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->saveState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/webkit/WebBackForwardList;->getCurrentItem()Landroid/webkit/WebHistoryItem;

    move-result-object v0

    :goto_0
    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    const-string v2, "currentUrl"

    invoke-virtual {v0}, Landroid/webkit/WebHistoryItem;->getUrl()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/n;->m:Landroid/os/Bundle;

    const-string v2, "currentTitle"

    invoke-virtual {v0}, Landroid/webkit/WebHistoryItem;->getTitle()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return v4

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
